home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
selvb20
/
semarks.frm
< prev
next >
Wrap
Text File
|
1995-06-15
|
13KB
|
445 lines
VERSION 2.00
Begin Form MarkDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Mark Demo"
ClientHeight = 4545
ClientLeft = 1215
ClientTop = 1965
ClientWidth = 8085
Height = 4950
Left = 1155
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4545
ScaleWidth = 8085
Top = 1620
Width = 8205
Begin SELECTOR Selector1
Angle = 210
AutoAlign = -1 'True
AutoAngle = -1 'True
AutoOffset = -1 'True
AutoOffsetDistance= 0
AutoOffsetStyle = 0 ' 0 - Circular
AutoRadius = 0.8
AutoStartAngle = 210
AutoStopAngle = 330
BackgroundColor = &H00C0C0C0&
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 1 ' 1 - Bevel
BorderWidth = 2
Captions = SEMARKS.FRX:0000
FrameColor = &H00000000&
FrameScaleX = 0
FrameScaleY = 0
FrameStyle = 0 ' 0 - None
Height = 4185
Highlight = 0 'False
HighlightColor = &H00000000&
KnobColor = &H00808080&
KnobOriginX = 0
KnobOriginY = 0
KnobRadius = 0.6
KnobStyle = 0 ' 0 - Cicular
KnobUserDefined = ""
Left = 180
LineDisplay = 0 'False
LineInnerRadius = 0.4
LineThickness = 1
MarkUserDefined = "0,0, 0,1000, 500,700, 200,700, 200,0"
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 31
Top = 210
Value = 0
Width = 4065
XScale = 0
YScale = 0
End
Begin HScrollBar HScroll1
Height = 240
Index = 2
Left = 4380
Max = 100
TabIndex = 29
Top = 2820
Width = 3465
End
Begin TextBox Text1
Height = 1125
Left = 4380
MultiLine = -1 'True
TabIndex = 3
Top = 3330
Width = 3615
End
Begin Frame Frame3
BackColor = &H00C0C0C0&
Caption = "Mark Color"
Height = 1425
Left = 6540
TabIndex = 23
Top = 60
Width = 1215
Begin Label Colors
BackColor = &H000080FF&
Height = 225
Index = 8
Left = 270
TabIndex = 4
Top = 900
Width = 225
End
Begin Label Colors
BackColor = &H00FF00FF&
Height = 225
Index = 7
Left = 750
TabIndex = 10
Top = 900
Width = 225
End
Begin Label Colors
BackColor = &H00FF0000&
Height = 225
Index = 6
Left = 270
TabIndex = 11
Top = 660
Width = 225
End
Begin Label Colors
BackColor = &H0000FFFF&
Height = 225
Index = 5
Left = 510
TabIndex = 12
Top = 900
Width = 225
End
Begin Label Colors
BackColor = &H0000FF00&
Height = 225
Index = 4
Left = 750
TabIndex = 13
Top = 420
Width = 225
End
Begin Label Colors
BackColor = &H000000FF&
Height = 225
Index = 3
Left = 750
TabIndex = 14
Top = 660
Width = 225
End
Begin Label Colors
BackColor = &H00FFFFFF&
Height = 225
Index = 2
Left = 510
TabIndex = 15
Top = 420
Width = 225
End
Begin Label Colors
BackColor = &H00808080&
Height = 225
Index = 1
Left = 510
TabIndex = 16
Top = 660
Width = 225
End
Begin Label Colors
BackColor = &H00000000&
Height = 225
Index = 0
Left = 270
TabIndex = 17
Top = 420
Width = 225
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "Mark Style"
Height = 1425
Left = 5130
TabIndex = 18
Top = 60
Width = 1365
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "User"
Height = 225
Index = 4
Left = 90
TabIndex = 21
Top = 1110
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Arrow"
Height = 225
Index = 3
Left = 90
TabIndex = 25
Top = 900
Width = 1005
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Triangular"
Height = 225
Index = 2
Left = 90
TabIndex = 9
Top = 690
Width = 1215
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Circular"
Height = 225
Index = 1
Left = 90
TabIndex = 20
Top = 480
Width = 1095
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "None"
Height = 225
Index = 0
Left = 90
TabIndex = 19
Top = 270
Width = 1125
End
End
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 4380
Max = 100
TabIndex = 5
Top = 2340
Width = 3465
End
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 4380
Max = 100
TabIndex = 0
Top = 1860
Width = 3465
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 6
Left = 7680
TabIndex = 1
Top = 2640
Width = 120
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Mark Width"
Height = 195
Index = 2
Left = 4380
TabIndex = 30
Top = 2610
Width = 990
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Mark Shape: (x,y pair list)"
Height = 195
Index = 4
Left = 4380
TabIndex = 28
Top = 3090
Width = 2190
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 5
Left = 1890
TabIndex = 6
Top = 3450
Width = 120
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 4
Left = 1950
TabIndex = 26
Top = 3840
Width = 90
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 3
Left = 1860
TabIndex = 22
Top = 3450
Width = 210
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 2
Left = 5850
TabIndex = 24
Top = 1830
Width = 120
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 7680
TabIndex = 8
Top = 2160
Width = 120
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Mark Outer Radius"
Height = 195
Index = 1
Left = 4380
TabIndex = 7
Top = 2130
Width = 1605
End
Begin Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Mark Inner Radius"
Height = 195
Index = 0
Left = 4380
TabIndex = 2
Top = 1650
Width = 1575
End
Begin Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 7680
TabIndex = 27
Top = 1680
Width = 90
End
End
Sub Colors_Click (index As Integer)
Selector1.MarkColor = colors(index).BackColor
End Sub
Sub Form_Load ()
hscroll1(0) = Selector1.MarkInnerRadius * 100
hscroll1(1) = Selector1.MarkOuterRadius * 100
hscroll1(2) = Selector1.MarkWidth * 100
option2(Selector1.MarkStyle) = True
text1 = Selector1.MarkUserDefined
For i% = 0 To 2
label2(i%) = hscroll1(i%) / 100
Next
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
Selector1.MarkInnerRadius = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
Selector1.MarkOuterRadius = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
Selector1.MarkWidth = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
Selector1.MarkInnerRadius = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
Selector1.MarkOuterRadius = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
Case 2
Selector1.MarkWidth = hscroll1(2) / 100
label2(2) = hscroll1(2) / 100
End Select
End Sub
Sub Option2_Click (index As Integer)
Selector1.MarkStyle = index
End Sub
Sub Text1_Change ()
Selector1.MarkUserDefined = text1
End Sub